
package com.jt.common.redis;

/**
 * redis key 集中类
 *
 * @author litianyi
 *         <p>
 *         2016年2月17日
 */
public class RedisKey {
    //验证码
    public final static String SMS_CODE = "SMS_CODE";
    //发送短信方法锁
    public final static String SEND_SMS = "SEND_SMS";
    //发送短信ip限制
    public final static String SEND_SMS_IP = "SEND_SMS_IP";
    //发送短信设备号限制
    public final static String SEND_SMS_DEVICE = "SEND_SMS_DEVICE";
    //发送短信手机号次数限制
    public final static String SEND_SMS_COUNT = "SEND_SMS_COUNT";
    //发送短信手机号每天次数限制
    public final static String DAY_SEND_SMS_COUNT = "DAY_SEND_SMS_COUNT";
    //发送短信ip每天次数限制
    public final static String DAY_SEND_SMS_IP = "DAY_SEND_SMS_IP";
    //手机号
    public final static String SIM = "SIM";
    //TOKEN
    public final static String TOKEN = "TOKEN";
    //确认用车
    public final static String CAR_BE_ORDERED = "CAR_BE_ORDERED";
    //订单操作
    public final static String ORDER_START = "ORDER_START";
    //取消订单次数
    public final static String CANCEL_ORDER_COUNT = "CANCEL_ORDER_COUNT";
    //取消订单
    public final static String CANCEL_ORDER = "CANCEL_ORDER";
    //免费还车次数
    public final static String FREE_RETURN_CAR_NUM = "FREE_RETURN_CAR_NUM";

    public final static String PECCANCY_PAY = "PECCANCY_PAY";

    public final static String CHARGE_PAY = "CHARGE_PAY";

    public final static String USER_LOGIN = "USER_LOGIN";

    public final static String USER_LOGIN_COUPON = "USER_LOGIN_COUPON";

    public final static String LONLAT = "LON_LAT";

    public final static String CAR_LOWSPEED_REMIND = "CAR_LOWSPEED_REMIND";

    public final static String WEIXIN_JSAPI_TICKET = "WEIXIN_JSAPI_TICKET";

    public final static String WEIXIN_JSAPI_TOKEN = "WEIXIN_JSAPI_TOKEN";

    public final static String JUMP_CAR_AFTER_IMAGE = "JUMP_CAR_AFTER_IMAGE";

    public final static String RED_ENVELOPE_CHANGE_PHONE = "RED_ENVELOPE_CHANGE_PHONE";
    //充电token
    public final static String CHARGE_TOKEN = "CHARGE_TOKEN";
    //回调token
    public final static String CHARGE_CALLBACK_TOKEN = "CHARGE_CALLBACK_TOKEN";
    //用户token
    public final static String USER_TOKEN = "USER_TOKEN";
    //订单充电
    public final static String ORDER_CHARGE = "ORDER_CHARGE";
    //充电发优惠券
    public final static String CHARGE_USERID = "CHARGE_USERID";
    //首次使用此类型车
    public final static String FIRST_USE_CAR = "FIRST_USE_CAR";
    //订单人脸识别次数
    public final static String FACE_ORDER_COUNT = "FACE_ORDER_COUNT";
    //资质认证人脸识别次数
    public final static String FACE_VALIDATE_COUNT = "FACE_VALIDATE_COUNT";
    //当月资质认证人脸记录
    public final static String FACE_VALIDATE_OF_THE_MONTH = "FACE_VALIDATE_OF_THE_MONTH";
    //当月资质认证身份证记录
    public final static String AUTH_VALIDATE_OF_THE_MONTH = "AUTH_VALIDATE_OF_THE_MONTH";
    //更新开始里程消息队列
    public final static String UPDATE_START_MILEAGE_QUEUE = "UPDATE_START_MILEAGE_QUEUE";
    //更新开始里程消息临时队列
    public final static String TEMP_UPDATE_START_MILEAGE_QUEUE = "TEMP_UPDATE_START_MILEAGE_QUEUE";
    //是否开门过
    public final static String ORDER_OPEN_DOOR = "ORDER_OPEN_DOOR";
    //退款申请
    public final static String USER_DEPOSIT_REFUND_APPLY = "USER_DEPOSIT_REFUND_APPLY";

    public final static String WORKSHEETNO = "WORKSHEETNO";
    //身份证 认证状态
    public final static String ID_CARD_AUTH = "ID_CARD_AUTH";

    public final static String PUSH = "PUSH";
    //车辆轨迹
    public final static String CAR_TRACKS = "CAR_TRACKS";
    public final static String CAR_TRACKS_LENGTH = "CAR_TRACKS_LENGTH";

    //登录token key
    public final static String LOGIN_TOKEN = "LOGIN_TOKEN";

    //用户双证审核
    public final static String USER_CHECK = "USER_CHECK";    //-----------------cacheable使用key-----------------------------
    //缓存表
    public final static String CACHE_CITY = "city";

    //PC官网图形验证码
    public final static String VCODE = "VCODE";

    //登陆注册图形验证码
    public final static String REGIST_VCODE = "REGIST_VCODE";


    //parking列表
    public final static String PARKING_LIST = "PARKING_LIST";
    //parking-order 推送短信tag  虚拟网点关闭
    public final static String PARKING_SMS_TAG1 = "PARKING_SMS_TAG1";
    //parking-order 推送短信tag  虚拟网点即将关闭
    public final static String PARKING_SMS_TAG2 = "PARKING_SMS_TAG2";
    //parking-order 推送短信tag  预约即将到期
    public final static String PARKING_SMS_TAG3 = "PARKING_SMS_TAG3";

    //parking-order 推送短信 定时LOCK
    public final static String PUT_PARKING_REDIS = "LOCK:PUT_PARKING_REDIS";
    public final static String PUSH_PARKING_SMS = "LOCK:PUSH_PARKING_SMS";

    //预警
    public final static String WARNING = "LOCK:WARNING";
    public final static String WARNING_COUNT = "WARNING_COUNT";

    //生成key
    public static String getKey(String prefix, String key) {
        return prefix + ":" + key;
    }

    //更换手机号key
    public final static String UPDATE_SIM = "UPDATE_SIM";

    //更换手机号图形验证码
    public final static String UPDATE_VCODE = "UPDATE_VCODE";

    //手机发送短信频率
    public final static String SmsRateLimit = "SmsRateLimit";

    public final static String TMP_REDIS_LOCK = "TMP_REDIS_LOCK";
    //push redis key 前缀
    public final static String PUSH_REDIS_KEY_PRE = "PUSH_REDIS_KEY_PRE";
    //蓝牙关门断电成功标识
    public final static String BLUETOOTH_CLOSEDOOR_POWEROFF = "BLUETOOTH_CLOSEDOOR_POWEROFF";


    //用车数据上报
    public final static String UPLOADREPORT = "LOCK:UPLOADREPORT";
    //还车数据上报
    public final static String HUANCHEREPORT = "LOCK:HUANCHEREPORT";
}
